graph using Matplotlib
import matplotlib.pyplot as plt
ax = plt.subplot()
ax.plot([1,2,3,4,5], [48,3,45,-1,-5])
[<matplotlib.lines.Line2D at 0x2812349b010>]
Graph using seaborn
import seaborn as sns
crashes =sns.load_dataset("car_crashes").sort_values ("total", ascending=False)
sns.set_color_codes("pastel")
sns.barplot(x="total", y="abbrev", data=crashes, label="Total", color="b")
<Axes: xlabel='total', ylabel='abbrev'>
graph using plotly
import plotly.express as exp
import plotly.offline as poff
fig =exp.line(x=["48","49","50"], y=[1,2,1])
poff.init_notebook_mode()
fig.show()